package com.yunxi.service.localService.impl.sto;

import com.yunxi.core.service.ServiceImplPlus;
import com.yunxi.dao.sto.StoTransportOrderMapper;
import com.yunxi.model.sto.StoTransportOrder;
import com.yunxi.model.sto.StoTransportOrderDetail;
import com.yunxi.service.localService.sto.StoTransportOrderService;
import com.yunxi.sto.pojo.StoTransportOrderVO;
import org.springframework.stereotype.Service;
import java.util.List;

/**
 * <p>
 * 车辆发运单 服务实现类
 * </p>
 *
 * @author caoYong
 * @since 2019-05-29
 */
@Service
public class StoTransportOrderServiceImpl extends ServiceImplPlus<StoTransportOrderMapper, StoTransportOrder> implements StoTransportOrderService {

    /**
     * 根据运单ID查询下属所有VIN集合
     * @param id
     * @return
     */
    @Override
    public List<StoTransportOrderDetail> queryVinListByOrderId(String id) {
        return baseMapper.queryVinListByOrderId(id);
    }

    /**
     * 通过主键查询详情
     * @param id
     * @return
     */
    @Override
    public StoTransportOrderVO getDetailById(String id) {
        return baseMapper.getDetailById(id);
    }

    /**
     *通过用户编号查询手机号
     * @param userCode
     * @return
     */
    @Override
    public String queryPhoneByUserCode(String userCode) {
        return baseMapper.queryPhoneByUserCode(userCode);
    }
}
